<?php

namespace App\Http\Controllers\Member;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Member\Notice;
use App\Models\Member\NoticeRecord;

class NoticeController extends Controller
{
    public function getList(Request $request)
    {
        $notice = new Notice;
        $data = $notice->getList();

        return $this->successClient($data); 
    }

    public function getDetail(Request $request)
    {
        $id = $request['id'];
        $notice = new Notice;
        $data = $notice->getDetail($id);

        return $this->successClient($data); 
    }

    public function getAlertNotice(Request $request)
    {
        $notice = new Notice;
        $data = $notice->getNotice();

        return $this->successClient($data); 
    }

    public function saveRecord(Request $request)
    {
        $id = $request['id'];
        $notice = new Notice;
        $data = $notice->saveRecord($id);

        return $this->successClient($data); 
    }
}
